#include<iostream>
#include<string>
#include<algorithm>
using namespace std;
int main()
{
	string str;
	cin >> str;
	int nums[26] = { 0 };
	const char* p = str.c_str();
	while (*p!='\0')
	{
		if (*p >= 'a' && *p <= 'z')
		{
			nums[*p - 'a']++;
		}
		p++;
	}
	for ( int count : nums)
	{
		cout <<count<<' ';
	}

	return 0;
}